package com.baidu.project15.chart25;

public abstract class Officer {
    protected  String name;
    //定义一个抽象处理者类的对象，作为其对下家的引用
    protected Officer officer; //维持对下家的引用
    public Officer(String name){
        this.name = name;
    }
    public void setOfficer(Officer officer) {
        this.officer = officer;
    }
    //声明抽象的的请求方法，具体实现交由子类完成
    public abstract void sendMission(Mission mission);
}